import type { IObserver } from './interface/observer'

export default class Asr implements IObserver {
  execute(data: any) {
    return new Promise((resolve) => {
      console.log('触发了ASR', data)
      setTimeout(() => {
        resolve({
          success: true,
          data: '我是ASR数据',
        })
      }, 3000)
    })
  }

  destory() {
    console.log('asr销毁了')
  }
}
